package com.yupi.usercenter.basic.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
//(value = "SqNetworkPageVO", description = "服务质量平台网点响应对象")
public class SqNetworkVO {

    /**
     * 网点名称
     */
    //(name = "name", value = "网点名称")
    private String name;
    /**
     * 网点编码
     */
    //(name = "code", value = "网点编码")
    private String code;
    /**
     * 网点Id
     */
    //(name = "id", value = "网点Id")
    private Integer id;
    /**
     * 父级网点Code
     */
    //(name = "parentNetworkCode", value = "父级网点Code")
    private String parentNetworkCode;
    /**
     * 父级网点Id
     */
    //(name = "parentNetworkId", value = "父级网点Id")
    private Integer parentNetworkId;

    /**
     * 父级网点名称
     */
    //(name = "parentNetworkName", value = "父级网点名称")
    private String parentNetworkName;
    /**
     * 省份Id
     */
    //(name = "providerId", value = "省份Id")
    private Integer providerId;
    /**
     * 省份描述
     */
    //(name = "providerDesc", value = "省份描述")
    private String providerDesc;
    /**
     * 类型Id
     */
    //(name = "typeId", value = "类型Id")
    private Integer typeId;

    /**
     *网点类型描述
     */
    //(name = "typeDesc", value = "网点类型描述")
    private String typeDesc;


    //(name = "financialCenterId", value = "财务中心ID")
    private Integer financialCenterId;

    //(name = "financialCenterCode", value = "财务中心Code")
    private String financialCenterCode;

    //(name = "financialCenterDesc", value = "财务中心名称")
    private String financialCenterDesc;

    /**
     * 开通时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime openingTime;

    //(name = "isSuspend", value = "是否暂停网点")
    private Integer isSuspend;

    //(name = "isSuspend", value = "暂停时间/退网时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime leavingTime;


    //(name = "proxyId", value = "代理区id")
    private Integer proxyId;

    //(name = "proxyCode", value = "代理区编码")
    private String proxyCode;

    //(name = "proxyName", value = "代理区名称")
    private String proxyName;

    //(name = "franchiseeId", value = "加盟商id")
    private Integer franchiseeId;

    //(name = "franchiseeCode", value = "加盟商编码")
    private String franchiseeCode;

    //(name = "franchiseeName", value = "加盟商名称")
    private String franchiseeName;

    //(name = "isDistributionCenter", value = "是否转运中心标识1是2否")
    private Integer isDistributionCenter = 1;

    //(name = "isEntrepot", value = "是否集散 1是2否")
    private Integer isEntrepot = 1;

    /**
     * 管理大区code
     */
    private String manageRegionCode;

    /**
     * 管理大区名称
     */
    private String manageRegionName;


}
